/*
 * @Author: zhanglianchang
 * @Date: 2020-08-01 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:57:26
 *
 * 标签有关的接口：自己写吧~~  已经被张老师删了 ^_^
 */
import { createAPI } from '@/utils/request'

export const listTags = data => createAPI('/tags', 'get', data)
export const changeTagsState = data => createAPI(`/tags/${data.id}/${data.state}`, 'post')
export const deleteTags = data => createAPI(`/tags/${data}`, 'delete')
export const addTags = data => createAPI('/tags', 'post', data)
export const editeTags = data => createAPI(`/tags/${data.id}`, 'put', data)
export const detail = data => createAPI(`/tags/${data}`, 'get')

// 标签简单列表
export const simple = data => createAPI('/tags/simple', 'get', data)
